<div class="p10 bdr_logo">
<span class="txts_pnk" style="padding-left:5px">Share </span><span class="txts_blk"><?php echo $storeDetailsArray[0]['store_name']; ?> Coupons</span>
<div class="w100" style="padding:5px 5px 0 5px">
<div class="left" style="width:165px;height:2px;background-color:#C31E3F"></div>
<div class="left" style="width:125px;height:2px;background-color:#484545"></div>
</div>
<div class="left">
<div class="txts_blk left" style="padding:10px 10px">Have a <span class="txts_pnk"><?php echo $storeDetailsArray[0]['store_name']; ?></span> coupon, share it with us.</div>
<div class="left" style="padding:0 10px 5px 10px">
<form name="shareForm" method="post" action="" onsubmit="return validate()">
<table width="100%">
<tr><td>
<input type="hidden" id="storeId" name="storeId" value="<?php echo $storeDetailsArray[0]['store_id']; ?>" /></td></tr>
<tr>
<td>
<input type="text" class="share_input" style="border:0" readonly="readonly" value="<?php echo $storeDetailsArray[0]['store_name']; ?>" id="shareStore" name="shareStore"/>
</td>
</tr>
<tr>
<td>
<input type="text" class="share_input" style="border:0;margin-top:5px" onblur="if(this.value=='')this.value='Coupon Title'" onfocus="if(this.value=='Coupon Title')this.value=''" value="Coupon Title" id="shareTitle" name="shareTitle"/>
<div id="titleError" style="padding:0 0 0 3px"></div>
</td>
</tr>
<tr>
<td>
<input type="text" class="share_input" style="border:0;margin-top:5px" onblur="if(this.value=='')this.value='Coupon Code';showCaptcha()" onfocus="if(this.value=='Coupon Code')this.value='';showCaptcha()" value="Coupon Code" id="shareCoupon" name="shareCoupon"/>
<div id="codeError" style="padding:0 0 0 3px"></div>
</td>
</tr>
<tr>
<td valign="top">
<textarea class="share_textarea" style="border:0;margin-top:5px" id="shareDesc" name="shareDesc" onblur="if(this.value=='')this.value='Offer Description';showCaptcha()" onfocus="if(this.value=='Offer Description')this.value='';showCaptcha()">Offer Description</textarea>
</td>
</tr>
<tr>
<td id="captchaCode" style="display:none">
<input type="text" class="share_captcha" style="border:0;margin-top:5px" readonly="readonly" value="<?php echo rand(1000, 9999); ?>" id="captchaImg" name="captchaImg"/>
</td>
</tr>
<tr>
<td id="captchaInput" style="display:none">
<input type="text" class="share_input" style="border:0;margin-top:5px" onblur="if(this.value=='')this.value='Enter Captcha'" onfocus="if(this.value=='Enter Captcha')this.value=''" value="Enter Captcha" id="captchaText" name="captchaText"/>
</td>
</tr>
<tr>
<td align="right">
<input type="button" id="shareSubmit" name="shareSubmit" value="Share Coupon" onclick="submitCoupon()" class="btn_share" />
<div style='color:#ff0000'><?php if(isset($msg)){ echo $msg;}?></div>
</td>
</tr>
</table>
</form>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>